import java.util.Scanner;

public class test625 {
    public static String convertMillis(long millis) {
        long totalSeconds = millis / 1000;
        long seconds = totalSeconds % 60;
        long totalMinutes = totalSeconds / 60;
        long minutes = totalMinutes % 60;
        long hours = totalMinutes / 60;
        return hours + ":" + minutes + ":" + seconds;
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入毫秒数：");
        long millis = scanner.nextLong();
        System.out.println("转换结果：" + convertMillis(millis));
        scanner.close();
    }
}

